Simplified the code; changed the file structure.
Added a cleaned-up main file; deleted an outdated one.
skiprows is deprecated; replaced with skip_header
Adjusted the script to run it from the command line.