python Analysis.py [-fhpvVwr] [device type] [input file]

Added ~70 lines to Vincent's original
For recording, at least 5 inputs per category is needed (hard-coded in [minimum] under count_inputs), but ideally more
Call using this syntax:
python Analysis.py [-fhpvVwr] [device type] [input file]