fixed pylint. added documentation.