add support for min/max functions
reorganize code
bump version