Added TimeWindow and SimpleCache. Also did small touches to various classes.