Added comments and made code more readable. Started writing user id to friends id in file