adds proper exit error code, updates version