updated case functions

forgot to remove caseFunctions, also added a little bit more to the
caseFunctions example