#001 |  small changes to some classes, throwing GrammwrInApplicableException if found so, added empty implementation for tree datastructure