Adds more functionality to frontend and solves lots of errors in backend