add x_limits, require_relative
Merge pull request #1 from jhej/master

add x_limits, require_relative