Minor fix + add documentation.