add option to run with custom domain locally and reformat code in C tutorials