More functionality to presets

Presets now get saved as .preset file. It will also return a warning
when invalid characters are inserted.