Updated documentation and edited code to properly calculate the required xcfoff for properly building the xcf.