tidy up and creation of static files