adding var. init
fixing doc