As a freelancer, the most important tool in your arsenal is a contract. It increases chances of you getting paid. Here’s how to write a freelance contract.