Adds fixes to some bugs. Everything despite statistics is now properly tested....
Adds fixes to some bugs. Everything despite statistics is now properly tested. Found a bunch of backend problems which are commented above the method. Methods that are still marked as wip shouldn't be used until the backend problems are solved.