Fix various small errors. Add UI inspector component.