Added docstrings and extended README