Migration from dirent to QDir, added dataset creation with X and PseudoTheta parameters