improvements to policy execution

Tackles #57. Now when an unexpected state transition happens, a new policy is recalculated from the new state, using the new data to update the MDP model, and executed afterwards (no more aborting due to this)