added mounting, restructured to library, added example