Implementing section and subsection insertion and adding better logic for edge cases. Updating formatting; USE TABS!