added a rebase url to the output. refactors around commenting.