Various bug fixes and tweaks. Added inspection frame hiding option.