Added version module.
Added version-checking target, updated version, and tweaked other targets.