changed Window to class

needed some internal calculations
added 1D harmonic method

based on Aigner thesis, pg 89