fixed color highlighting, user input parsing and memory allocation bugs