Comments are important.
Changed file serving to use dynamically allocated memory.
Moved sending to its own function.
Changed the send function to send where it left off if not all gets sent.