randomly changed stuff

This is an awful commit and an equally awful commit message. I rewrote
some things, moved other bits around and probably deleted some crap as
well.
graphics for irix 6.5