Add normal mode frequencies plot and generalize array dimensions to N