Added new version handling and moved errors to stderr.