added main and quote functionality