move stuff into a package directory and add build script