Added debug logging that can be turned on via the --debug flag. Fixed a bug where the cache was used to try and obtain a cached log for the current version (were always going to rebuild this so why bother visiting the cache?). Fixed a bug where there is trailing whitespace at the end of the changelog.