Removed tabbed chars and renamed variables
Added write buffer
Added read buffer to compression
Various performance updates.