Added main program and plots