appended v1 to all API endpoints, updated docs, refactored api.py