Docstrings for DataLayer base class, with some minor refactoring