Update to public functions

Included version() function to return version number of class file.