modified to check the length of key/value
added a test for length checking feature
Merge pull request #3 from studio-ousia/length_checking

Length checking