Implement export, add private/public export buttons, remove commented code