add more methods and tests for Node class
fix several typos causing syntax errors.