Initial commit of simulator code