Added comments

Added comments to the code. Also added support for using the Local
HDInsight emulator.