Improve part_of_log(), add example
Add executable flags