input class now just global variables, fixed some non-PEP8 style issues