add source code to refman.pdf