Added checksum as suggested in #67
Implementation is not yet complete, since some tests fail