Added log4j logger for logs, included .gitignore and partly implemented
file sync.