refactored. README written