Refactoring + comments.
Rename.
Rename file to be more accurate.
Move report definitions to their own file.
Remove dead code.