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.
Un-indent this string. This indentation is a syntax error according to the rules of reStructuredText. (And yes, there are plenty of other docstring-related issues that need to be tackled, but that's an issue for another time.)