Add log folder, including dairy.
Implemented a debugging framework.