Fix stringSelector
Added if expression
Added new way of defining embedded functions.