Output api elements to csv + adds new public functions