Congrats on getting licensed — and good on you for sorting the contract before you need it, not after a problem job. A few things that have saved us on commercial roofs, and they apply just as much on residential work:
Spell out the exact system in writing — membrane type and thickness, insulation, flashing, edge metal, and how many layers are coming off. "New roof" means different things to different people.
Put a clear allowance in for bad decking or rotted wood, with a per-sheet price and a note that you'll confirm with the customer before going ahead. That's where most arguments start.
Separate your workmanship warranty from the manufacturer's material warranty, and state what each one actually covers and for how long.
List what's not included — interior finishes, gutters, skylights, masonry, that sort of thing — and require change orders in writing for anything extra.
Like others said, get a local attorney to review it once for your state's rules. A template is a good starting point, but the exclusions and payment schedule are what actually protect you on a bad day.