Added comment.
Added lots of functionality for flask usage.
Updated for flask
Added functionality, now have mostly working front end.