Changed the way logfile is handled, added tests
Fixed issue with /etc/rc.local being corrupted
Added repeat command to terminal