Frontend: revisited detector layout and minor fixes in other areas.