modified variables names
added vertex iterator
added new method for error extimation