Code Export

Added an export code button and exported current code.