Merge pull request #2 from glyphobet/master

Code cleanup + add checksum method from glyphobet