Implemntation file receiving function.

Implement file receiving function.
File sending is on the way...