downcase codename and added few comments