Code consistency. All files now have consistent docstrings and hashbangs have been changed to /usr/bin/env python3.