R tutorial remastered, old broken code fixed, getFrame and getModel examples added