Small changes

* Updated README file
* Added license information to source files
* Fixed bug in output filename option
* Added some debugging info for future improvements