show suggestions, close empty sidebar
* contents of the replacements attribute are shown (fixes #20)
* the sidebar is closed when there are no mistakes (related to #22)
* better variable names