[Minor] code cleanup

- cleaned up JavaDoc for some classes
- changed equals() to not use instanceOf but class==class
- set some fields private which were package scope