Remove old test code
Remove examples
Remove some unneeded imports
Remove unused variable bindings