Added functionality for using windows in periodogram functions.