Cleanup code

  1. Made some methods inline.
  2. Replaced `use ffi::*;` with `use ffi;`