Fix for documentation

Fix for documentation.
- Eval generated def method
- Use require instead of load