update comments and added echo for exec status