Cleanup and lint syntax.
Move vars to top of method.
Add link to Github repository.
Lay out conditions.
Merge pull request #3 from ubilabs/master

Clean up syntax