Added modulo division algorithm plus a bit more code
Finished program