Refactored faces and edge creation to their own functions.

In preparation for displaying nodes.