use destructuring where possible
removed old comments
docstring for get-fields
used width as height ...
docstrings
changed main function