Corrected code to be more OS neutral, added docs to constants, and fixed
random capitalization