Fixing spaces and adding 'class' attribute to article and section