Added final methods to client and fixed some bugs
Added comments to function definitions for godoc