Added main loop and rendering of a sample triangle