updated variables to camelCase for readability and added the beginnings of hook feature