New :clean action and :sync now updates to the reference if not currently at it

Just some changes I made that may be useful to others.