cleaned up unneeded vars and imports. Added verbose function

This is most likely the last dev-version before release.