sped up plotting of PCAs, handling artefacts in txt file