Added a new parser, changed the way input is read from socket and added functions for static and dynamic handling