refactored to use the exception for wrong request parameters.
Added named parameters feature to callX methods.
Helper class to deal with types.
new tests added.
tests for type handling.