Fix a memory leak.
Update doc. Fix a bug in exported camera index (in case of missing camera). #186
Update doc. #186