Created some new functions (getContactInfo(),getTextContentByTag()) in order to make parseFile() clearer