Added some functions, preset file parsing