[fix] Pascal uses ';' and not ',' as argument list separator
proper cast to return type inside functions
[fix] And and Or operators were not there