remove some utilities from app.py, and remove some unused files from repo