Add YARN deployment. Some minor fixes.