Fixed the polluting of the global name space. Added example file.