added classes and method for loading pathway diagrams