Updated unit tests, improved user avatars, added email and file error logging