Completed the traversal function, made sure remove function is working. added some documentation to the code