updated read-command.c:Parses through the commands and makes basic tree