Adding method to generate from string
Fixing formatting
Merge pull request #221 from jgashe/master

generate() from string and not solely URL