Update and rename handler.h to core.h