many fixes to the lilypond wrapper script and linearization
of the pdf