added xName, methods, tests. Closes #49
fixed bugs in xName require_a statements