Changed  logs to just print statements and added email funciton to upload