cleaned up implementation of SimpleExpression
Added documentation