Minor cleanup and added version to imreg.