The NHS and Scottish Government have improved how they manage, monitor and scrutinise waiting lists, in response to recommendations.