I would to know for what is used the code below (Last lines code) in arsclassica.sty. Also I would to know why in arsclassica-settings there are some repetitions of \lstset is not the same thing put all the options in one \lstset? And why, for examples this string: \lstset{moredelim={[is][\ttfamily]{!?}{?!}}} is repeated?

## Listings code

\lstset{basicstyle=\normalfont\ttfamily}
\lstset{flexiblecolumns=true}
\lstset{moredelim={[is][\normalfont\itshape]{/*}{*/}}}
\lstset{basicstyle=\normalfont\ttfamily}
\lstset{flexiblecolumns=false}
\lstset{moredelim={[is][\ttfamily]{!?}{?!}}}
\lstset{escapeinside={�*}{*�}}
\lstset{firstnumber=last}
\lstset{moredelim={[is][\ttfamily]{!?}{?!}}}


## Last lines code

\def\toc@headingbkORrp{%
\chapter*{\contentsname}%
\@mkboth{\spacedlowsmallcaps{\contentsname}}
{\spacedlowsmallcaps{\contentsname}}}}

Sorry, I was wrong. I was looking for your first lines of code. %-{ –  Martin Schröder Sep 24 '12 at 17:53
The second code block defines a macro that if executed sets the heading for the table for contents to be based on \chapter rather than \section. It then executes that code if the main class is scrrept or scrbook,