Separate library project and demo project

It will be easy to use DebugLog if we have it as a library project. I have made some heavy changes. It may be difficult to merge.