Added SessionApi.
Cleaned up Javadocs.