Refactor encodeObjType function into a closure and simplify
Update readme