-- new key class, updates

-- created second output string in matrix, subsitution key class added