adds method local_independencies fixes #126
improved docstring format
correction in local_independencies method #126