Cleaned and tidied up the examples