tidy up the variable names and add usage function