Implemented eval expression for parser

Code now parses text and python expressions. also minor bug fixes.