[-] Fixed several bugs in code samples