Documentation updates to replace verbatim environment with lstlisting and tidy up code breaks