Remove unused imports; move json imports to utility

Fixes #7