Adds -f option to force rewrite all files
Reorganizes help message
Moves two functions to helper