fixed latex compile errors
moar debug output