Add complete comment for decodePoly method