Linux

Made adjustments to code to work with both Windows and Linux. Tested on Ubuntu 12.04.