Update Pattern class to use Interface class to store port info; tweak docstrings.