Cleaned up code, server now supports variable file size, working on getting client to support same functionality