Added the ability to be imported as a library.

Added the ability to be imported as a library.