clean up and add method for creating empty directory
update basic template