removed unused code, added comments
removed unused code, fixed linting