Fixed formatting and ruby hash syntax