Added DxfTests project and dxf code refactoring