fix score(...), implement expected_value(...)
fix typos and warnings
fix typos