updated functions with usage in readme