Use warnings instead of print statements. printwcs() should print the PC matrix if available.