Removed useless returns at the end of main in examples. Added distance example to geometry examples.