retro_core: implements all functions.
retro_core: correct the return type of new.