Added functionality for command parsing and server listening on a socket