added support for % operator and changed license to LGPL v3