Repo cleanup (add bin, dist etc. to .gitignore); code cleanup (mostly unnecessary imports)