Cleaned up some unused code and whitespace, iterated version, tweaked wait time in standardInOut