Add functions

edit comments and add new function