Fixed error in preset datafile
Fixed json reading bug, some more code-structure changes
Fixed processing bugs and added it back in again