fixes resetting layout when highlighting errors.
changed array looping into list looping
Added update method
added comment about handling of si equals null
added removeChild methods