Fixed read user input
Fixing read user input and a bunch of other functions that collaborate with it