added ability to choose example without recompilation
simplified main