Changed debug functions
Fixed client geometry bugs