Added final declarations, following my normal style guide.
Added getAttribute with a default.
Added javadoc comments.