move code c to ruby and define mode constants
move code c to ruby
split file
move code c to ruby {size,zero}?