added documentation of the code