If we judge any ancient work by our current morals, we would most likely be left wanting. This book was written almost 2500 years back.
So what we really want is an interpretation / disclaimer in front of this work that makes it clear how we should interpret it through a framework that applies today without bringing off-topic morality questions into play.