Some cleanup, last test case that failed. Some documentation in the sources