Added licence text to source file
Fixed the -f option