add code project sample project
migrated java samples to main codebase