add link to README
refactor if statements