Minor updates to Dll system.

- moved secure to DllLibrary
- add some docstrings.