cleanup and create debug, standard and minified versions.