Clean and document gen-list and debug-filter Java code