modify readme and add a template len option