Cleaned up code

* Rewrote the prime checking system
* Added additional testing (square rooting)