minor cleanup
rename typeOf to type
enable optional parameters
refactor to use RuleBook; major refactor in ParamsDecorator
add docs
Merge pull request #2 from myou/feature-enable-optional-params

Feature enable optional params