Fix state machine and signature processing
Fix state machine and signature processing

* Case where there is only a copyright section is now handled properly.
* function name extraction from signature line is now more robust.

thierr26/octave2matlab,thierr26/octave2matlab