Studies on crystal structures by the application of probability methods to problems in X-ray crystalography