fixed accepting friends, and added ~
implemented file saving and reading - still bugy, need to fix