Add flag --mintime
Remove trailing whitespaces
Update to work with YAML