Add the actual library as dependency for test programs
Change size mismatch to throw "length_error"
Refactor: unified interface for two kinds of modulation spectrum processing