Cleaned up examples source code.