Documented a bit the code