add coments and fix zero dict optimisation in DAL