Cleaned up getInput(), issue #25. Fixed issue #26, implicit declaration of function kill()