fixed factorcheck, related test and added comments to twisted qz