Added Comments to code, Also added line in batch logger