Add interfaces
update references
include more typings, update referices into typings