Moving implementation files to lib/.