Several bug fixes. Commit system runs now.