added reading class
made some small changes in other classes