functions of communication with raspberry done
fixing files with ~