updated the README and  refactored code
added gitignore file