Documented some of the functions
Added public declaration for completing handshake