Added directory option

and an option to append label to directory path