updated readmes, fixed code