Dump thread now terminates when stdin is closed
Output time interval
Added design doc and google test
Included and fixed gtest