code cleaning, documentation