Add version command. Fix up static names. Log better

Use static reference for logging.