Cleaning up reindex script
Adding more fields to detail