more refactoring in packages and mainrunner. added serialization to list of class metrics to avoid reparsing data