renamed some stuff; finished documentation