Initial implemntation of file receiving (without GUI)