reformat WLTermView.m

* add some comments
* use NSDictionary for attributes cache