updated docs, typos and some changes.