add support for version(), closes #34