Added Main.java for testing
Minor changes
Refactoring and clone() now works!