added cosmic indexing code.
adding cosmic dataloading module.