Fixed fileLogger. Implemented BufferLogger. Added better tests.