Well, update the README a bit
Self contained functions look better

And 'v' is not really an acceptable name for a global variable.