Replace ArrayList and HashMap with List and Map

Added ErrorParser class to handle the "ERROR" command (will work on this later)