Updated - added functionality

Stupidly forgot to make the error class do anything.

Fixed - now properly hands errors to Java Exception class.