tukey window output, error and test

Error check fixed, returns 1d array, added test