Ruby way for method names; minor code improvements