Initial commit of main CoreMod class and Reference class