Add serialVersionUIDs and clean up javadoc.