Added some comments and fixed an error in the Exception class