Implemented a :core command

Factored out part of the :type command, as these have a lot of commonality.