refactoring of ParseLog

see issue #141