Changed the build to use the right main class and updated the tool to
work with single files.