added a substation matrix class for aligner which required several updates to all programs