Updated dihedral.py and parsers.py to allow user-defined dihedral distance metrics/clustering