massive refactoring, command line arguments, script to parse files