Added a private variable to set the format of report. Changed the if condition to switch case
Added comment for setFormat function
bug fix for missing operator in switch statement
Merge pull request #1 from riteshgurung/master

Code improvements