Clean haddock module headers
Remove unused imports, add type declaration
WIP: Add more rules to the parser