added functions to print edges and facets
modified to add functions that print edge and facet mesh. doesnt
work correctly.