added code and documents and updated the readme
updated readme