Added filename option

-added option to choose file name when saving logs
-Bug fixed