input should be pipe compatable
now uses case and can accept pipe input
Merge pull request #5 from mossycleft/master

Now uses case and can accept pipe input