PlannedValueModel implemented and some fixes