Cleanup code and make it easier to run from the extension's working directory without having to specify any arguments.
Bump copyright to 2013