added codesniffer check to ant test target
threw away create_function usage
changed closure usage to proxy methods