Add mod operator

fixes #7