Refactor libparserutils (Issue #21)