#15 - Add comments and fix sync.pref_update