Add methods to get cout of observers and media.

Also make correct indent in MediaContainer.cpp file.
Compare iterators with correction when it can be out of bound.
Add test on iterating by iterators.