Update with additional methods and error handling

Need to complete some methods for math types other than GMP.