Documentation and code cleaning.