Code cleanup: Add Javadoc to the existing Bounds class. Also add null argument checks in several places that lacked it (for consistency with all the other checks that were there). A little reformatting of the code to make it a bit more readable.