Break example functions out of main script
Remove and reinstate commented out code