From what I heard, best thing is to have a good lawyer and a good accountant recommended by somebody in business you can trust.
Not saying you should either learn on your own or have somebody recommended to deal with this for you, I thing you should one and the other.
I do wish you luck, I am still gathering courage to venture into business on my own :)