Implement log file and improve logging - centralising cmd line parameters to config file. Fixed #15
Work on #20
Update document as per #19