Update documentation, increase code consistency.