Modified the name of some variables

added space after ','

changed count to firstAttr, and used boolean to repalce the integer

changed namedcons_attrs to namedconsAttrs