Initial commit of engine code