adding license and flattening directory