Cleanup and lint syntax.
Move vars to top of method.
Add link to Github repository.
Lay out conditions.