Initial commit of main library file