Actually fixed logger(). removed [] from paramters and write file option