Fixing some export encoding errors and updating rails

* Closes #15
* Closes #16