Changes in perf.py functionality, unification of examples, correction build warnings