My contract was written by a Silicon Valley attorney, so in a different context you might have different concerns.
Essentially, it says
I'm a contractor I'm a contractor I'm a contractor Work products not part of client's secret sauce belong to me The rest belongs to the client (I will add "after full payment" per patio11) Client has a perpetual non-exclusive license to use the part that is mine
The details of the scope of work and payment terms are in attachments to this. There is the usual stuff about late payments, jurisdictions, etc.