add max-length option
Merge pull request #15 from kazeburo/max_length

add max-length option