Added error class and added readme file