Added S3 support in LDATrain