Added session export. Session bug fixes