add int var for presenting status, 0:unfinished, 1:finished
add syslog for logging. Add if-statement for unfinished and resumed. Implement setting fname