I'd suggest taking a look at the book Graphic Artists Guild Handbook: Pricing & Ethical Guidelines it has quite a bit of lawyer-written gobbledygook you can use as boilerplates for your own agreements. While it has a graphics perspective, the basic prinicples can be applied to any freelance work for hire.