Fixed erroneous newline
Handled missing snippets in extract