converting attributes to lowercase while processing
Added some comments