Replaced 'if' with 'switch'. Added 'usage' function
Merge pull request #2 from AlexDenisov/added_usage

Replaced 'if' with 'switch'. Added 'usage' function