Add package.exs config.
Remove dead code. Fix tests.