Basic debug logging

Also a todo to remember what to do next