renamed for more clarity
updated to use new variables and a better readme.