cleaned up sidebar controller and added comments, also cleaned up friendsListService and added comments