added other attributes for file
updated template to use new attributes
generalized script to find home directory