New decoder algorithm that is more robust and a notebook demo