Working on documentation. After this need to make code valgrind pure.