added some docs and changed some stuff