Added getter and set methods

Fixed a bug with the simplify method