Crystal structure toolkit