minor fix to detector, fixes to paintgrid in indexer, and added new paintGrid script with cfg file