Implemented modulo operator.
Now plays nicely with readline. Valgrind reports no memory leaks.
I don't, however, like the fact that ^D is echoed when pressed.
I've managed to get rid of the printed ^D. If anyone knows how, I'd be quite
interested to know.
Cleaned up comments and includes.