refomatting catch block - carbon-14904
resetting default values for class variables
moving class variable initialization to constructor
Merge pull request #30 from Nipuni/carbon-14904

Reformatting catch block - carbon-14904