Update README with refactored code and proper links.