Refactor whitespace and change filenames to .rb