- HDR tag added to the result tif.
- Further refactoring
syntax error fixed.