Shorten if/else statement in OfflineMessageStrategy

and add some comments.
Use switch/case instead of if/else in OfflineMessageStrategy
Merge pull request #30 from Flowdalic/codecleanup

Codecleanup