fixes bugs with text input, changes source from argv to user input. Yay.