added debugging routes, new environment variable, small edits/cleanup of some views.