Updating exception logging and if check styles as per review comments
adding in comments for explaining constant values
Merge branch 'preprocess_spark' of https://github.com/vrushalic/hraven into preprocess_spark