Various fixes and documentations.