Added ability to pass a callback to get the string

- renamed method to generate
- added tests
- updated readme with development information