Update 'parameters' field and several fixes

Update 'parameters' field form "string" to "array" for better usage.
Several fixes