Fixed config issues, updated main.py to handle local and deployed