added _next_token method to reader
completed _next_token method