Expanded docstring with ideas for future development of module. Bug fixes.