changed indentation using lispindent sublimeText plugin
refactored to list comprehensions and destructured parameters