better handler for errors
add some method to work better with CComponent
better documentation