small API updates to use int instead of string
Merge pull request #8 from n8fr8/master

small cleanup and optimizations from storymaker