added .rvmrc
fixed errors, warnings
fixed duplication smell