updated some files and curated the code