Fix Warnings

Refactor all uses of ~[] to Vec and remove unused imports.