documented backend, fixed some minor thingies