added windowing functions to library