all tests passing now - rather hacky - needs some refactoring
tests still passing and output_index looking pretty good ...
Merge pull request #1 from tansaku/tests

Fixing our existing tests and displaying the new latex tags