put everything into folders. added map rebinning routine.