removed unused functions
grouped functions together
started init function
unlink log file
added check for file existing before trying to delete
created deleteLog function