added a pause option; some javadoc; depthbuffer