use template function to write log
check counter
debug print modified
add Dump (pure virtual method) to LogEntry, and modify Writer::Flush
add file, State.hpp
README modified