fixed some bugs in qdsparf.m and added getCra.m