More bug fixes

Backend is ready for all future features.