Cleaned up addNode method and made other formatting changes
Added command line arguments. Modified tree class to allow printing to console or writing to file.