Merge pull request #14 from wolfcore/master

Great stuff... I had a working implementation for the lightning thing but you beat me :) , cheers!
Added MIT License, fixes #13