implemented Insertion.java
improved and added comments