Fixed character casting for code output.

Also made code copy-able.