unused files was removed + output and intermediate dirs was arranged