fix snippets and some tex

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
improvements

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>