Adding daemon class and added args to S3.java