Reorganized files for better clarity and added commentaries

    main.cpp is now empty and all the tests should be done in memlib_tests.cpp
    in the waiting of a real test suite.