remove some unused imports
more type signatures
fix some unused variable warnings
kill dead code
defaulting numeric argument types
fix shadowed name warning
silence some more warnings