Reorganize, progress on detector scripts, add a widget for selecting magnitude range of color mapping, fix crashes on some platforms.