added comments in engine.h