Bump version to 0.2.4

- Use `require` instead of `require_relative` when possible
- Misc code cleanup