In filing a patent application and paying required fees, the USPTO provides forms and an electronic filing tool. You may also wish to find a patent attorney or agent to help draft the required description of the invention and claims, and any required drawings.
The definition for inventorship can be simply stated: “The threshold question in determining inventorship is who conceived the invention. Unless a person contributes to the conception of the invention, he is not an inventor. …