Update

Added new and refined a few functions.
Added a custom Exceptions class.