Added gt, l, between and not operators and cleaned up parameter casting