bug fixes
huge bug fixes
doc generated