update ffi to be consistent with torch
Merge pull request #23 from alvinlschua/master

update ffi to be consistent with torch