Fixed a number of errors with reference generation, and added final step to tar and upload the bwa index back into hdfs.