Implemented debug logging #1
Added debug logging in the example app
Added debug logging docs