parsing code final, changed parsing technique to lxml