Buying a boat with friends - can it be done?

I am thinking of buying a 5m powerboat for fishing and cruising with some friends to share costs and ensure it gets more usage.

Does anyone have any experiences buying these kind of things with friends? No horror stories, just tips for managing the process and thinking?

Edit: tips like managing a shared calendar for booking, things worthwhile paying for, cheap ways to write an agreement?