Improved memory management
Added network upload and download