added railtie, fixed minor issues

also: IT WORKS!