updated notes, added TS examples