Started adding docstrings and organizing. Renamed modelbase to CalhaBase.