fixed bug for saving settings to binary. created state for drawing vertices to the screen.