Added the simplify method

Includes javadoc :smile: