Many more bug fixes
Documentation edits