+ Fixed counting of parameter prototype obj
+ Reordered response data/error parameters to make more sense.
+ Added debug log check