What are the essential legal documents and agreements that a startup or business should have in place before raising investment from angel investors, venture capital firms, or other funding sources, and why are these documents important during the investment process?