A Bunch of Small Fixes

- fixed gcd bug
- use prime numbers mods for adding congruences
- labels changed
- legend removed