Finalized testing of functions. Updated Documentation of functions