refactored for readability
added readme