What is self and atman?

My feeling is that when one talks to oneself and receives conscience-led advice, there are two things, the self as in myself, yourself himself itself, and the atman that guides one.

When all traces of attachments and ego vanishes there is no self and only that atman remains as the Doer. This is when atman is Brahman.

Could any one advise me on this?