Improvements no. 25

Fixes #5. Added some improvements to file sending and file receiving and
much more.