Merge pull request #322 from JohannesPfeifer/master

Another bugfix for rplot
Preprocessor interface and documentation for endogenous_prior option

Closes #321
Add preprocessor messages (stdout, stderr) to the logfile

Closes #306
bug fix: single quotes
bug fix: substr not a matlab function
bug fix: fputs not a matlab function