Adding default length to gen_string

Also updated the supporting functions to the same default length. Made minor adjustments to documentation. Finally, added additional test for default length.
Will let this slide, as this documentation is not parsed by Sphinx.