Added some warning flags
Rewrote parseUserInput without strtok