Added the ability to export objects to csv