Added entity classes and API docs.

Added columns to the tables. Added entity classes and API docs.