purge unused functions; lognshow implementation; some comments