Added worksheet and fixed a repeated line
Fixed all recursive traversal functions