fix unpooling layer boundary condition, add more comments