Buying land in partnership

what things should I look out for when buying land in partnership with a friend? What should the agreement cover to prevent future disagreements. Does anyone know of a resource to get good legal advice on this matter? When it comes to attorneys, I dont believe yu get what you pay for!! Does anyone know of a very good one?

Thanks in advance