added new extension types
improved postscript output (with simple compression)