adding debug info and rem comments