fixed protected property access on php 5.3
added dependency container, added TempReading entity