Merge pull request #4 from nsreeniv/master

Adding basic error checking to event parsing and fixing penalty regex to
[WCP] Making usable as a module and as a command line tool