Fix some bugs, add a new datetime format, cppcheck and some steps to reduce warnings
nominmax
artistic style (google c++ style)