Cleanup code and add comments explaining what I am doing
Add some comments for what I am doing with the test

Cleanup code a bit

Only update if the stamp which we have is not dirty
Mark Update stamp as dirty if a higher timestamp slot is not taking an update belonging to lower timestamp and has already been marked as dirty