Deleted unused functions. Updated documentation for functions