fixed comments and added code to update to remove old aliases before adding current ones
Added/improved comments
added a test to ensure that user update will get rid of old aliases and not just add the new ones.