updated comments
added isAdded()
made getValue() final