updated comments to reflect design change
updated spectragen to the new module style
found some globals that should be local