added tests for parameter and improved support for primitives
added examples