Improve exception handling and update copyright notice.

Add class level comment.