refactored stored parsed structure to allow saving the check expression also. added javadocs