divided source into "Main" and "demo" distributions