Added RSA export. Still no compilation export functionality. Also added in tmp file checking/removal