Fixed output for program. TODO: Fix vertices output (not sure what to do there yet).