The following:
/*!
\mainpage Welcome to this code
\section S1 Introduction
Some stuff to explain why you coded all this
\section S2 Examples
Many examples of how the code can be used
\internal
!!! some line which you wouldn't write in a documentation
\endinternal
\section S3 Some other stuff
*/
achieves the desired goal, provided your doxyfile is set correctly ( INTERNAL_DOCS tag set to NO ). I aknowledge @albert for the tip.