Fix documentation
Refactor method
Use more informative variable names
Refactor for DRY