update docstrings.
fixing https://github.com/cellnopt/cellnopt/issues/67 and code cleaning
fix https://github.com/cellnopt/cellnopt/issues/65 using functools module