Add pkg documentation and small change to how request decoding happen