Final
Final 1.0 version with comments and without any errors in VALGRIND