Update functions with comments and usage