Rails code style and readme updates