Updated the execution engine with missing logics and documentation