Extending Bdi Agents With Robust Program Execution, Adaptive Plan Library, And Efficient Intention Progression