Added version command and initialized 'c' in onCommand method to avoid compiler error