Finished the documentation of the code.