Added doc and logging, init and checked small functionnalities.