fixed bug for entering first character as space
fixed bug for entering more than 1 space in between "edit" and "task number"
close the logger filehandler on exit
fixed the logger generate multiple instances of log file bug