Fixed some bugs
Added the readme file