hlint and removed unnecessary imports.