changed THIM model to work in continuous time; INCOMPLETE - some stubs remain