Added functions, fixed loops, atNode, InsertNode. Added get_type to NameNode.