fixed wrong sign in alternatives evaluation, minor improvements