Added some checks for None in history from reading
Changed id checking in Add reading