code cleanup, removes obnoxious kbhit stuff