added scala examples and new API examples