Cleaned up code. Changed method of getting crystal sites.