R mirror

changes in the pkload function to address a bug that occured when
running spgc for the first time