Add maxLength option

See readme changes for details