Add some bug fixes for TS 0.9.1 and fix add and remove contacts.