Program version reflects in PDF documentation.

After running "make inputref" and "make ref-doc" the reference manual contains the actual version and revision number defined in main.cc.

Fix #36.