updated dxf output, added simplify function