Started the code for sending a file, allwed variadic error messages in the Error function

- Error function now takes a variable number of arguments with printf-style messages
- Started adding some of the new code for sending a file.