updated readme and added initial code.
updated some docs.