Added licence (GPLv3), and docstrings for the library.