Converted to ruby. Much cleaner. Added option for entering from density
Fixed up readme