Minor CS fixes
Adding factory and examples for ghost objects