updated to use vars for the paths and added comments.