Added debug bar
Fixed some bugs