fixed 64 bit client errors, updated samples