factored windows functions into different file, renamed rarFind and fileFiles and improved function