Formatted graphics code

Formatted more code from the graphics library