Window staff peep

Hexdec I've moved the window_staff_peep functions into there own file. I'm not too sure the best approach for merging the changes in to yours so this is an attempt at that.