Rearranged event polling order, added some example graphics