Added check for another process running (very rudimentary)

Added automated removal of old logs