Advanced Window; Added comments/doc