renamed updateData
some phpDoc, unit Tests