fixed error call in prcomp, compiler warnings