initial commit of core inference process code, may 20