fixed bugs in the latex generator.
fixed a broken ref.
added a bold font formatting and a latex handler for \textbf.
removed a TODO