fixed bits->bytes and added comments. Also added a checksumming function (empty for now).