Reorganised the source code structure and added quite a lot of (basic) docstrings.