Added template integrity check, nicer template loading
Added preset loading, changed the way the default preset is determined, smaller changes to classes