Move to lib and add VERSION constant