tidy up source: remove unused imports and instances, remove line-ending whitespace, alignment
work on error reporting section of article