fixed an issue with read function, updated readme