added main
now runs in windows console