add Context and Example JavaFX class, clean up code