Logic, examples, and template cleanups
Updated the README.md with new parameters