addition of util.py and very few modifications in app.py