fix code style
fix some exception messages
fix namespace usage for functions and constants
remove some todo's
new class for handle curl error
fix call onLoad callback
InvalidArgumentException for callbacks
default values for class properties
some optimizations
fix constants names
better description