Applied smart pointers to RIFF related classes