Refactoring Vertices

Created function to generate a struct containing vertices in a
consistent manner. Also changed vertices assignment to set commands.