More files and fixes from rails app