Moved parsing functions with http functions

Some renaming also
Added user input functionality