Fix parsing bug and ensure the creation of the docs/ directory
Add pretty printing and require a module declaration and structure comment