Added readme and error validation