Made the reader generic and added sample config.