Improved size estimation for compression algorithms and added licensing header to all files.