Added function for appending to linked list of commandNodes. May have bug with use of malloc for allocating memory for the new Node, cannot test yet.