Moved get_highlighted_terms() and get_ref_from_word_id() to the BF object.
Added BF.create_ref().
Change the state after a callout's details are hidden.
Check to make sure the language exists.
Added and improved documentation of recently added functions.
Added some missing documentation.
Remember the extra highlighted terms when switching languages.