STYLE: Added comments, cleaned formatting