Added some things

- Added SendFilePrepare() function to avoid code copying
- More comments