Expand Xs prior to checking.

- Fixes #3
- Make samples_to_bin/bin_to_samples executable.