reading chains from xml file added
Seems to be working

Still need to refactor and stuff