added functionality to export class metadata in the final json file