Added method to export element classes into JSON format. Fixed generation of link uri.