How do I go about documenting this and is it tax deductible?
Yes.
I will also add that you need to document what the funds are for: equity or debt.
A lot people fund their companies with a personal loan to the company for tax reasons.