Added commandline argument parsing, and debug flag to test on non-raspi system.