Bug fixes

Made a correction in Tree.java's bits method and made a change in
Main.java