added utility functions

added isRenderable, which checks if a group is renderable
added findRenderFunction, which computes the textual renderFunction to
be used
minor edits to checkBoxValidity
TODO: experiments/testing