How can I take details from a contact record like address details and merge them to the company record?
There are tools already out there that will create a company record from contact details.
The following, I believe, all have something similar:
Get Started For Free
I generally recommend PlusThis as they seem to have the most complete set of campaign tools and are best supported.