Implemented file receiving

Needs to compensate for internal timings. Possibly empty buffer when
information is still coming leading to wrong interpretations.