A tool for building cores from PENMSHXP