fix bugs in logs, improve subset.cpp, ready to test