Error check fixed

I also got rid of import java.math, uncomment if needed.
Implimented a print function
Merge pull request #1 from JoshHenderson/patch-1

Patch 1