Add deploy-related comment to complile script. Improve deploy script to log more things.