Improved Error Handling.
 +Added some parameter handling features for functions in case of wrong
function-parameter inputs from client side.
Added Default value for parameters of mapped methods.
Added Default value for parameters of mapped methods.