Fix errors in doc
Update custom_text_objects function to take in filetype. Update doc