I know there was an old thread where someone had a link to a contract template of sorts.

I work on an hourly rate (freelance) and am having trouble with a client who is being very slow to pay. I could really use a contract to protect myself legally and also if anyone has an invoice template I could use aswell I'd appreciate it.