new license file added
license should be LGPL 2.1
indentation changes, code cleanup, fixes

  * spaces converted to tabs
  * utf8 characters removed
  * extra brackets added
  * CRC -> checksum
  * checksum implemented
  * error strings added