adds matlab snippets and change cpp