Update function names to follow ruby standards; replace some string literals with symbols