discard indicator variable due to no improvement; change s2i/s2d to stoi/stod
separate decoder as a standalone class