minor bugfix in smooth
added an interactive spectrum normalizing code