added empty field for test_tse ;

formatted mining.py in accordance with pep8 ;

wrote complete docstrings for mining.py