Adding comments.
Fixing imd xml trimming to start after last zero.