Fixed RLE linear/log composition and added count-based log.
Reorganized package structure.