migrated C++ files from ringo repo to snapr