added constructors to node
minor bug fixes