cleaned up sync.py, and added new variables in vars.py