I second the parent. The typical inventor thinks the description and drawings are important, while they are really secondary to the claims which are what is legally protected. Unfortunately, writing a good set of claims is an art that can only be mastered through a lot of experience and research into what has been effective with the USPTO in addition to what has been upheld in court. While this is not out of reach of the HN audience, your time would be better served by innovating and letting a good IP law firm handle the patent. This will be expensive -- costs are at least $10K, and software patents typically will cost more because prosecution (arguing with the USPTO why your invention is patentable) will be longer. IMHO, the whole process is soul-sucking and why I no longer practice patent law.
However, if you do wish to proceed the best play to start would be with the official Manual of Patent Examining Procedure (MPEP):