Changed the order of operations in order to save a little running time.
Added some light documentation.
This project is effectively done.