Fix some dependencies.
Remove extra . in require_relative paths.
Moved types/ out of lib/