Add doc and change dynamic exec to function dispatch
Merge pull request #2 from codingpotato/master

Add doc and change dynamic exec to function dispatch