Fixes display name issues
Finishes refactoring of librarysync.py