fixed all traversing bugs. added comments. added todo list