removed multi option, fixed some strict warnings and errors, added error checking for length of packet size, as well as filename and file data