done some styling, included <iostream> and such
added pair-oriented cell access (access with std::pair<int, int>), fixed some compilation errors