New main method and constructor for Node

hope i didn't mess anything up. lol.