Implemented exceptions.

Added classes for every possible error. I will update the Readme accordingly soon.
Comments are welcome!