Refactored app.py
Updated README.md