incremental changes before refactoring specgram functions
updates to specgram/ispecgram