main polish export block

The main code for exporting to polish format was written earlier and
copied into the class