Implement log function for MainView.java and MainViewController.java. Close #67