updated docstrings + code style
modifying tests scripts