Correct program parameters.
Fix indentations.
Merge the implementations from https://github.com/BaiGang/spark_multiboost .