Added the ability to pre-register functions and made initializing the library manditory.