Updated ruby 1.9 hash syntax

Fixed all bugs previously encountered.