add 'max' condition to 'buildWhere' function
upgrade version to 0.0.4