Add comments. Fix hibernate sequence.

Change-Id: I76bb04da5c2cb7cfe6a79ad65a157a2fc504480f