updating rof_parse_log.php

more deconstruction into functions