fixing indent, adding docstrings for changes listener
removing printouts and changing back to logging outputs