fetch from remote before branch comparison.

added comments
Fixed formatting