1p demo done, log modifications, some optimizations