Fixed Node

Added some methods required for the solver, switch ints for longs where appropriate to prevent possible overflow.