added code showing how to use the ActionBar

Credit to @timanrebel and @ashokfernandez for most of the code