renamed encodedLength to originalLength
added byteLength calculation
added deploy key
added publish condition
added encode method
updated README