clone of http://www.cgl.ucsf.edu/chimera/sourcecode.html