Refactoring

Refactored Atlas, Subscriber and Publisher. Made Topic simpler. All
tested.