updated the comments -- unfortunately the decrypt function does not work for a != 1 because I do not calculate the invmod