documentation + cleaning