Added more descriptive variable names and added docstrings
Added docstrings