Removed print statements and fixed upload bug