Fixed two double free memory errors, added gui, exported friend list to gui.