provide support to export entities with all its references

Solves #14 
+1