fixes and, max ray intensity and progress bar