Fixed a memory alignement problem and a signed/unsigned comparison. Updated README.