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.