add args parsing and multiple files
done. TODO: test the log to disk