Made chaining available.
Added reader class to read info from xml file.