Add lifetime to reader

- Add lifetime parameter to Reader structure
Add lifetimes to test and parser as wel

- Like previous change, this adds lifetimes to test/parser