Software Development: A Legal Guide
http://www.amazon.com/Legal-Guide-Software-Development-CD-Ro...
and
Consultant & Independent Contractor Agreements
http://www.amazon.com/Consultant-Independent-Contractor-Agre...
both by: Stephen Fishman J.D : NOLO press
The majority of the book is agreement templates, including one for software development. But more importantly, it walks through the language and what you should be looking for -- interestingly, both from the perspective of an employer and contractor. Of course, it's also helpful/recommended to get feedback from a lawyer for your specific situation.