removed hardcoded paths & fixed sort for multiple chromosomes