Add pipeline demo. and fix small issues.