added small example for benchmarking and cleaned up wire code