Added drawing of debug building, changed some other small things to get things working properly