removed unused code
added some docstrings