small improvements

added some additional packages supporting tikz/pgf generated by octave and replacing pdflatex with lualatex to fix dynamic memory allocation issue.