add version file.
use a constant instead of class var
use ruby idiom of no brackets for func call