Completed Window object and refactored demo applications.