took the code for loading the n-gram distributions out of the function call such that it will only be run once.
significantly accelerated the app.
first version of the app with a simple layout.