Better packages
Better packages 2
Better packages 3
Better packages 4
Last refactoring, almost fixed
Fixes incredibly dumb and critical bug

Closed atoms were case classes. They had no identity, when they're supposed to be found by identity. That's so stupid I can't believe I did that.

Also finalizes the refactoring.