minor improvements to code quality
changed from strict to lazy bytestrings