created init function which bootstraps the library (matches docs now.)