Updating readme file and middle layer error checking