switched to private objs for some Fns

Added window hight and width cache
Resize cache function saves