added comment to explain usage
added comment to .h file as well