Rename toHTML to prepareHTML
Fix api return result inconsistency
Fix adding all todos to main documentation object