add build script and prepare for proper distribution