added separate main/demo build/publish scripts;