Broke data processing code to its own namespace. Added cli arguments for input file and output dir.