made the backend section more workable.
Lots of bugfixes.