Improved documentation for periodogram functions
Added tests for new window functionality