Added JSON output option and  parsing function for class descriptions