Fixed minor bugs causing crashes on Win7 target machine.
Removed some dead code.
Increased processing speed by 50% on sample data. Added expectation statement for sample data to test.py