added readme and some docs for code