added second constructor to allow hadoop JobConf configuration. See #58.

Some refactoring it may be required to avoid code duplication.