Add reasonable ngram mode.

Old mode is now called insance mode.
Add a select menu for the user to choose the mode.
Move view function into its own module
Fix JSON formatting in Readme